/*
 * @Author: your name
 * @Date: 2021-04-30 10:57:22
 * @LastEditTime: 2021-04-30 16:47:18
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bairuimcr\src\api\hezuo.js
 */
import request from "@/utils/request";

export function z(data) {
    return request({
        url: 'backend/cooperate/save',
        method: 'POST',
        data: {    
            title: data.title,
            image: data.image,
        }
    })
}

export function s(id) {
    return request({
        url: `backend/cooperate/delete?id=${id}`,
        method: 'DELETE',
        data: {
            id: id
        }
    })
}

export function g(data) {
    return request({
        url: 'backend/cooperate/update',
        method: 'POST',
        data: {
            title: data.title,
            image: data.image,
            sort: data.sort,
            id:data.id,
        }
    })
}

export function c() {
    return request({
        url: 'backend/cooperate/index',
        method: 'GET'
    })
}
